<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<?php include(DDROOTPATH.'/cache/title/'.$pagetag.'_title.php');?>
<LINK rel=stylesheet type=text/css href="template/<?=MOBAN?>/css/common.css">
<LINK rel=stylesheet type=text/css href="template/<?=MOBAN?>/css/duihuan.css">
<script type="text/javascript" src="template/<?=MOBAN?>/js/jquery-1.3.2.min.js"></script>
<SCRIPT type="text/javascript" src="template/<?=MOBAN?>/js/function.js"></SCRIPT>
</head><body>
<?php include("header.tpl.php");?>
<?php include("nav.tpl.php");?>
<div id="weizhi">当前位置：<a href="index.php">首页</a> > 兑换中心</div>
<div id="main"><div id="apDiv6"><div id="apDiv9">
<?php if($_SESSION['duoduouser']!=NULL){?>
<div id="apDiv11"></div>
<div id="apDiv12"><span style="float:left;">您好：</span><span style="color:#B1319E; width:80px; overflow:hidden; display:block; float:left"><?=$_SESSION['duoduouser']?></span></div>
<div id="apDiv13">你有积分：<font color="#B1319E" size="3"><?=$jifen?></font>&nbsp;点</div>
<div id="apDiv133">你有余额：<font color="#B1319E" size="3"><?=$money?></font>&nbsp;元</div>
<?php }else{?>
<div id="apDiv22"></div>
<div id="apDiv23"><a onclick="window.location='user/login.php?url='+encodeURIComponent(window.location.href)" style="cursor:pointer"><img src="template/<?=MOBAN?>/images/fqw_dl.gif" width="171" height="35" /></a></div>
<?php }?>
</div>
  
<div id="apDiv17"><div id="apDiv18">商品列表</div></div>
</div>
<div id="apDiv7">
<div id="apDiv8"><div id="apDiv10">兑换的实物礼品无需缴纳任何费用，包括快递费。<br />
礼品会在2-3周内寄送到您的手中。优惠券等虚拟商品将发送到您指定的电子邮箱中，也可以随时在<?php if($_SESSION['duoduouser']!=NULL){?><a href="user/huan.php">“用户中心”</a><?php }else{?><a href="#login" rel="facebox">“用户中心”</a><?php }?>中查看。</div>
</div>
<div id="apDiv1124">
<?php while ($row = mysql_fetch_array($rs)){$n++;?>
<div class="tbdplist4" <?php if($n==1){?> style="_margin-left:5px" <?php } ?>>
<div id="apDiv4">
<?php if($row["num"]<1){$fs="<div id=swts>&nbsp;</div>";}else if($row["num"]>0){$fs="<div id=syts></div>";}echo $fs;?>
<a href="huangou<?=$url_head_id?><?php echo $row["id"];?><?=$url_end?>" title="<?php echo $row["name"];?>"><img  src="<?php echo $row["pic"];?>" width="130" height="130" alt="<?php echo $row["name"];?>" /></a>
</div>

<div id="apDiv15"><?php echo $row["name"];?></div>
<div id="apDiv16"><?php echo $row["jifen"];?>&nbsp;积分或余额&nbsp;<?php echo $row["money"];?>&nbsp;元</div>
</div><?php }$n=0;?></div>

<div style="background-color:#f4f4f4;margin-top:10px;background-color:#f4f4f4;margin-bottom: 10px;width:718px;height:25px;border: 1px solid #dbdbdb;">
<div class="megas512" style="clear:both;"><?php pageft($total,$pagesize,1,1,0,10,$page_huan_list);echo $pagenav;?></div></div></div>
<?php include("footer.tpl.php");?></div>
</body></html>